
import 'package:audio_spectrum_example/secondPage.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'interact_page.dart';

class LightHomePage extends StatefulWidget {
  LightHomePage();

  @override
  State<StatefulWidget> createState() => _LightHomePageState();
}

class _LightHomePageState extends State<LightHomePage> {
  RxInt _currentPage = 0.obs;

  @override
  void initState() {
    init();
    super.initState();
  }

  init() async {}

  @override
  Widget build(BuildContext context) {
    return Scaffold(

      body: Obx(() => _currentPage.value == 0 ? InteractPage() : SecondPage()),
    );
  }

  @override
  void dispose() {
    // Get.deleteAll();
    super.dispose();
  }
}
